package com.shuda.business.channel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuda.business.channel.entity.DataPoolDataEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 数据池数据Mapper接口
 */
@Mapper
public interface DataPoolDataMapper extends BaseMapper<DataPoolDataEntity> {

    /**
     * 根据数据池ID删除数据
     */
    int deleteByPoolId(@Param("poolId") Long poolId);

    /**
     * 获取数据分布统计
     */
    Map<String, Object> getDataDistribution(@Param("poolId") Long poolId);
}